//
//  SFTestRouterViewController.m
//  JYSRouter_Example
//
//  Created by yjs on 2019/11/11.
//  Copyright © 2019 2015089414@qq.com. All rights reserved.
//

#import "SFTestRouterViewController.h"
#import "DIYMGJRouter.h"

@interface SFTestRouterViewController ()

@end

@implementation SFTestRouterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor blueColor];
//    [DIYMGJRouter registerURLPattern:@"mgj://category/travel" toHandler:^(NSDictionary *routerParameters) {
//        NSLog(@"收到了");
//        self.view.backgroundColor = [UIColor orangeColor];
//    }];
    [DIYMGJRouter openURL:@"mgj://category/travel" withUserInfo:@{@"user_id":@2000} completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
